#pragma once

#include "QRWCreateCurveWidget.h"
#include "ui_CreateLineWidget.h"

QT_BEGIN_NAMESPACE
namespace Ui { class CreateLineWidgetClass; };
QT_END_NAMESPACE

class CreateLineWidget : public QRWCreateCurveWidget
{
	Q_OBJECT

public:
	CreateLineWidget(MainWindow* inMainWindow, ShapeOperation* inOperation = nullptr, QWidget* parent = nullptr);
	virtual ~CreateLineWidget();

protected:

	void onPosChanged();

	virtual void OnPickPosition(const gp_Pnt& inPosition) override;
	virtual class ShapeOperation* GetOperation() override;
	virtual void GenerateFeatureShapeForCacheActor() override;
	virtual bool eventFilter(QObject* obj, QEvent* event) override;
	virtual void Reset() override;

	void UpdateInner();
private:
	Ui::CreateLineWidgetClass *ui;

	RWTripleFloatInput* m_startPnt;
	RWTripleFloatInput* m_endPnt;
};
